#include "MoveEvent.h"

unsigned int MoveEvent::type = 0;

MoveEvent::MoveEvent()
{
	InitializeType(&type);
}

MoveEvent::MoveEvent(const MoveEvent& rhs): moveDirection(rhs.moveDirection)
{
}

MoveEvent::~MoveEvent()
{
}

GameEvent* MoveEvent::Clone() const
{
	return new MoveEvent(*this);
}

void MoveEvent::Copy(GameEvent* gameEvent)
{
	if (Equals(gameEvent))
	{
		MoveEvent* moveEvent = static_cast<MoveEvent*>(gameEvent);

		moveDirection = moveEvent->moveDirection;
	}
}

unsigned int MoveEvent::Type() const
{
	return type;
}

void MoveEvent::SetDirection(const Direction& direction)
{
	moveDirection = direction;
}

const Direction& MoveEvent::MoveDirection() const
{
	return moveDirection;
}




